<%@ page import="ar.com.binarit.entities.UsuarioParticipante" %>



<div class="fieldcontain ${hasErrors(bean: usuarioParticipanteInstance, field: 'username', 'error')} ">
	<label for="username">
		<g:message code="usuarioParticipante.username.label" default="Username" />
		
	</label>
	<g:textField name="username" maxlength="100" value="${usuarioParticipanteInstance?.username}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioParticipanteInstance, field: 'password', 'error')} ">
	<label for="password">
		<g:message code="usuarioParticipante.password.label" default="Password" />
		
	</label>
	<g:textField name="password" value="${usuarioParticipanteInstance?.password}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioParticipanteInstance, field: 'mail', 'error')} ">
	<label for="mail">
		<g:message code="usuarioParticipante.mail.label" default="Mail" />
		
	</label>
	<g:field type="email" name="mail" maxlength="100" value="${usuarioParticipanteInstance?.mail}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioParticipanteInstance, field: 'tipoUsuario', 'error')} required">
	<label for="tipoUsuario">
		<g:message code="usuarioParticipante.tipoUsuario.label" default="Tipo Usuario" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="tipoUsuario" name="tipoUsuario.id" from="${ar.com.binarit.entities.TipoUsuario.list()}" optionKey="id" required="" value="${usuarioParticipanteInstance?.tipoUsuario?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioParticipanteInstance, field: 'nickname', 'error')} ">
	<label for="nickname">
		<g:message code="usuarioParticipante.nickname.label" default="Nickname" />
		
	</label>
	<g:textField name="nickname" maxlength="100" value="${usuarioParticipanteInstance?.nickname}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioParticipanteInstance, field: 'mubbiasDestacadas', 'error')} ">
	<label for="mubbiasDestacadas">
		<g:message code="usuarioParticipante.mubbiasDestacadas.label" default="Mubbias Destacadas" />
		
	</label>
	<g:select name="mubbiasDestacadas" from="${ar.com.binarit.entities.Mubbia.list()}" multiple="multiple" optionKey="id" size="5" value="${usuarioParticipanteInstance?.mubbiasDestacadas*.id}" class="many-to-many"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioParticipanteInstance, field: 'mubbiasFavoritas', 'error')} ">
	<label for="mubbiasFavoritas">
		<g:message code="usuarioParticipante.mubbiasFavoritas.label" default="Mubbias Favoritas" />
		
	</label>
	<g:select name="mubbiasFavoritas" from="${ar.com.binarit.entities.Mubbia.list()}" multiple="multiple" optionKey="id" size="5" value="${usuarioParticipanteInstance?.mubbiasFavoritas*.id}" class="many-to-many"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioParticipanteInstance, field: 'mubbiasEnVista', 'error')} ">
	<label for="mubbiasEnVista">
		<g:message code="usuarioParticipante.mubbiasEnVista.label" default="Mubbias En Vista" />
		
	</label>
	<g:select name="mubbiasEnVista" from="${ar.com.binarit.entities.Mubbia.list()}" multiple="multiple" optionKey="id" size="5" value="${usuarioParticipanteInstance?.mubbiasEnVista*.id}" class="many-to-many"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioParticipanteInstance, field: 'mubbiasParticipando', 'error')} ">
	<label for="mubbiasParticipando">
		<g:message code="usuarioParticipante.mubbiasParticipando.label" default="Mubbias Participando" />
		
	</label>
	
<ul class="one-to-many">
<g:each in="${usuarioParticipanteInstance?.mubbiasParticipando?}" var="m">
    <li><g:link controller="usuariosParticipantesMubbia" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="usuariosParticipantesMubbia" action="create" params="['usuarioParticipante.id': usuarioParticipanteInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'usuariosParticipantesMubbia.label', default: 'UsuariosParticipantesMubbia')])}</g:link>
</li>
</ul>

</div>

<div class="fieldcontain ${hasErrors(bean: usuarioParticipanteInstance, field: 'imgAvatar', 'error')} ">
	<label for="imgAvatar">
		<g:message code="usuarioParticipante.imgAvatar.label" default="Img Avatar" />
		
	</label>
	<g:textField name="imgAvatar" value="${usuarioParticipanteInstance?.imgAvatar}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioParticipanteInstance, field: 'valorRanking', 'error')} required">
	<label for="valorRanking">
		<g:message code="usuarioParticipante.valorRanking.label" default="Valor Ranking" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="valorRanking" type="number" value="${usuarioParticipanteInstance.valorRanking}" required=""/>
</div>

